package com.cn.ccp.util;

import java.text.DecimalFormat;

public interface Contants {
	
	public final static String USER_SESSION_BEAN = "userBean";
	public final static String USER_SESSION_MENU = "userMenu";
	
	public final static String FILE_TYPE_IMAGE = "FILE_TYPE_IMAGE";
	public final static String FILE_TYPE_FILE = "FILE_TYPE_FILE";
	
	public final static String TERM_SCHEDULE_ID = "TERM_SCHEDULE_ID";
	
	public final static String SHOW_TEACHER_SCHEDULE = "SHOW_TEACHER_SCHEDULE";

	/**
	 * 课程表上课类型
	 */
	public final static int SCHEDULE_TYPE_SINGLE = 1;//单周上课
	public final static int SCHEDULE_TYPE_DOUBLE = 2;//双周上课
	public final static int SCHEDULE_TYPE_DEFAULT = 4;//单双周上课
	
	/**
	 * 作息时间类型
	 */
	public final static int SCHEDULE_TYPE_MORNING = 0;//早上
	public final static int SCHEDULE_TYPE_FORENOON = 1;//上午
	public final static int SCHEDULE_TYPE_AFTERNOON = 2;//下午
	public final static int SCHEDULE_TYPE_NIGHT = 3;//晚上
	
	/**
	 * 用户类型
	 */
	public final static String USER_TYPE_STUDENT = "1";//学生
	public final static String USER_TYPE_FULL_TIME_TEACHER = "2";//专职老师
	public final static String USER_TYPE_PART_TIME_TEACHER = "3";//兼职老师
	public final static String USER_TYPE_EXT_TEACHER = "4";//外聘老师
	
	/**
	 * 职称类型
	 */
	public final static String POSITIONAL_LECTURE = "1";//讲师
	public final static String POSITIONAL_A_PROFESSOR = "2";//副教授
	public final static String POSITIONAL_PROFESSOR = "3";//教授
	
	/**
	 * 课程状态
	 */
	public final static int COURSE_STATUS_NEW = 1;//新建课程
	public final static int COURSE_STATUS_WAITING_APPROVE = 2;//待审批
	public final static int COURSE_STATUS_APPROVE_NO = 3;//审批未通过
	public final static int COURSE_STATUS_RELEASE = 4;// 待发布
	public final static int COURSE_STATUS_RELEASE_DONE = 5;//发布 
	public final static int COURSE_STATUS_OFFLINE = 6;//下架
	public final static int COURSE_STATUS_DELETE = -1;//逻辑删除
	
	
	/**
	 * 学生所选课程状态
	 */
	public final static int SELECTED_COURSE_STATUS_WAITING_APPROVE = 0;//等等审批（如需要收费的课程，则需要审批）
	public final static int SELECTED_COURSE_STATUS_STUDING = 1;//正在学习，审批通过就进入该状态
	public final static int SELECTED_COURSE_STATUS_GRADUATED = 2;//已经结业
	public final static int SELECTED_COURSE_STATUS_FAILE_TEST = 3;//考试未通过
	public final static int SELECTED_COURSE_STATUS_DELETE = -1;//删除状态
	public final static int SELECTED_COURSE_STATUS_REJECT = 4;//审批未通过
	
	/**
	 * 课程表科目初始值
	 */
	public final static String SCHEDULE_CLASS_SUBJECT_INIT = "----";
	
	public static DecimalFormat dFormat = new DecimalFormat("#0.0");//界面显示数据保留1位小数
	
	public static String HAS_TEST_YES = "1";//存在练习
	public static String HAS_TEST_NO = "0";//不存在练习
	
	public static int DATA_DICTIONARY_CLASS_TYPE = 1;//课程分类
	public static int DATA_DICTIONARY_LANGUAGE_TYPE = 2;//语言分类
	public static int DATA_DICTIONARY_TEACHER_TYPE = 3;//教师类型
	public static int DATA_DICTIONARY_TEACHER_TITLE_TYPE = 4;//教师职称
	
	public static int COURSE_SETTING_TYPE_TEST = 1;//考试
	public static int COURSE_SETTING_TYPE_HOMEWORK = 2;//作业
	public static int COURSE_SETTING_TYPE_INVEST = 3;//调查
	
	
	public static String 	CHOOSE_QUESTION = "0";//选择题
	public static String 	JUDGE_QUESTION = "1";//判断题
	public static String 	SEPARATOR_QUESTION = "1";//习题间分隔符
	
	
	public static String OUTLINE_DERECT = "outline";
	public static String EVALUATION_DERECT = "evaluation";
	
	public static String TMP_UPLOAD = "tmp_upload";//临时上传文件路径
	
	public static String COURSER_ID = "COURSER_ID";//课程id
	
	public static int DESABLE_FORUM = -1;//屏蔽用户的留言
	public static int ENABLE_FORUM = 1;//恢复用户的留言
	
}
